package com.ruoyi.system.service;

import com.ruoyi.system.domain.RoomOrder;

import java.text.ParseException;
import java.util.List;

/**
 * 客房订单Service接口
 * 
 * @author 强盛酒店
 * @date 2023-03-09
 */
public interface IRoomOrderService 
{
    /**
     * 查询客房订单
     * 
     * @param id 客房订单主键
     * @return 客房订单
     */
    public RoomOrder selectRoomOrderById(Long id);

    /**
     * 查询客房订单列表
     * 
     * @param roomOrder 客房订单
     * @return 客房订单集合
     */
    public List<RoomOrder> selectRoomOrderList(RoomOrder roomOrder);

    /**
     * 新增客房订单
     * 
     * @param roomOrder 客房订单
     * @return 结果
     */
    public int insertRoomOrder(RoomOrder roomOrder) throws ParseException;

    /**
     * 修改客房订单
     * 
     * @param roomOrder 客房订单
     * @return 结果
     */
    public int updateRoomOrder(RoomOrder roomOrder) throws ParseException;

    /**
     * 批量删除客房订单
     * 
     * @param ids 需要删除的客房订单主键集合
     * @return 结果
     */
    public int deleteRoomOrderByIds(Long[] ids);

    /**
     * 删除客房订单信息
     * 
     * @param id 客房订单主键
     * @return 结果
     */
    public int deleteRoomOrderById(Long id);

    int submitRoomOrder(RoomOrder roomOrder) throws ParseException;

    int auditRoomOrder(Long id);

    List<RoomOrder> getMyOrder();

    int cancel(Long id);
}
